
<div class="center_content">
    <?php
    foreach ($this->category as $category)
    {
        ?>
        <div class="center_title_bar"><?php echo $category->name; ?></div>
        <?php
        foreach ($category->products as $item)
        {
            ?>
            <div class="prod_box">
                <div class="top_prod_box"></div>
                <div class="center_prod_box">
                    <div class="product_title">
                        <?php echo CHtml::link($item->title, $item->PublicUrl); ?>
                    </div>
                    <?php
                    $item->sale = ($item->sale / $this->rate->rate);
                    $item->price = ($item->price / $this->rate->rate);
                    ?>
                    <div class="product_img"><a href="<?php echo $item->PublicUrl; ?>"><?php echo CHtml::image($this->assetDir . $item->thumbnail) ?></a></div>
                    <div class="prod_price"><span class="reduce"><?php echo number_format(round($item->price, 2)); ?><?php echo $this->rate->symbols ?></span> <span class="price">
                            <?php echo number_format(round($item->sale, 2)); ?>
                            <?php echo $this->rate->symbols ?></span></div>
                </div>
                <div class="bottom_prod_box"></div>
                <div class="prod_details_tab"> <a href="#" title="header=[Add to cart] body=[&nbsp;] fade=[on]"><img src="<?php echo $this->assetDir . '/assets/images/cart.gif'; ?>" alt="" border="0" class="left_bt" /></a> 
                    <a href="http://all-free-download.com/free-website-templates/" title="header=[Specials] body=[&nbsp;] fade=[on]">
                        <img src="<?php echo $this->assetDir . '/assets/images/favs.gif'; ?>" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Gifts] body=[&nbsp;] fade=[on]">
                        <img src="<?php echo $this->assetDir . '/assets/images/favs.gif'; ?>" alt="" border="0" class="left_bt" /></a> <a href="details.html" class="prod_details">details</a> </div>
            </div>
        <?php } ?>
    <?php } ?>

</div>
<!-- end of center content -->
